#include "HUD.h"

#include <SFML/Graphics.hpp>

#include <string>


HUD::HUD (): texture (),
			 sprite ()
{
}

HUD& HUD::getInstance ()
{
	static HUD instance;
	return instance;
}

void HUD::generateSprite (Image::HUDTexture hudTexture)
{    
	texture = ImageCache::getInstance ().getHUDTexture (hudTexture);
    sprite.setTexture (*texture);

    sprite.setPosition (sf::Vector2f (0, 0));
}

bool HUD::processLeftClickEvent (const sf::Vector2i& pos) const
{
 	/*if (TODO: RangeCheck)
		return true;*/
    return false;
}

bool HUD::processRightClickEvent (const sf::Vector2i& pos) const
{
	/*if (TODO: RangeCheck)
		return true;*/
    return false;
}

void HUD::draw (sf::RenderTarget& target, sf::RenderStates states) const
{
        target.draw(sprite, states);
}